import request from '@/utils/request'

// 查询配置存储列表
export function listSysConfig(query) {
  return request({
    url: '/basic/sysConfig/list',
    method: 'get',
    params: query
  })
}

// 查询配置存储详细
export function getSysConfig() {
  return request({
    url: '/basic/sysConfig/1',
    method: 'get'
  })
}

// 新增配置存储
export function addSysConfig(data) {
  return request({
    url: '/basic/sysConfig',
    method: 'post',
    data: data
  })
}

// 修改配置存储
export function updateSysConfig(data) {
  return request({
    url: '/basic/sysConfig',
    method: 'put',
    data: data
  })
}

// 删除配置存储
export function delSysConfig(id) {
  return request({
    url: '/basic/sysConfig/' + id,
    method: 'delete'
  })
}

// 导出配置存储
export function exportSysConfig(query) {
  return request({
    url: '/basic/sysConfig/export',
    method: 'get',
    params: query
  })
}
